package com.hualan.controller;

import com.hualan.service.impl.HeartmarkService;
import com.hualan.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/heartmark")
public class HeartmarkControllerbfb {
    @Autowired
    private HeartmarkService heartmarkService;

    @GetMapping("/getAllHeartmark")
    public R getAllHeartmark(){
        return R.success(heartmarkService.findAllHeartmark());
    }

    @GetMapping("/getLikeMark")
    public R getLikeMark(String markName){
        return R.success(heartmarkService.findMarkLikeByName(markName));
    }
}
